package com.jianbing.lakk.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jianbing.lakk.mapper.LakkUserassociationMapper;
import com.jianbing.lakk.domain.LakkUserassociation;
import com.jianbing.lakk.service.ILakkUserassociationService;

/**
 * lakk用户关联Service业务层处理
 * 
 * @author windbless
 * @date 2024-06-25
 */
@Service
public class LakkUserassociationServiceImpl implements ILakkUserassociationService 
{
    @Autowired
    private LakkUserassociationMapper lakkUserassociationMapper;

    /**
     * 查询lakk用户关联
     * 
     * @param id lakk用户关联主键
     * @return lakk用户关联
     */
    @Override
    public LakkUserassociation selectLakkUserassociationById(Long id)
    {
        return lakkUserassociationMapper.selectLakkUserassociationById(id);
    }

    /**
     * 查询lakk用户关联列表
     * 
     * @param lakkUserassociation lakk用户关联
     * @return lakk用户关联
     */
    @Override
    public List<LakkUserassociation> selectLakkUserassociationList(LakkUserassociation lakkUserassociation)
    {
        return lakkUserassociationMapper.selectLakkUserassociationList(lakkUserassociation);
    }

    /**
     * 新增lakk用户关联
     * 
     * @param lakkUserassociation lakk用户关联
     * @return 结果
     */
    @Override
    public int insertLakkUserassociation(LakkUserassociation lakkUserassociation)
    {
        return lakkUserassociationMapper.insertLakkUserassociation(lakkUserassociation);
    }

    /**
     * 修改lakk用户关联
     * 
     * @param lakkUserassociation lakk用户关联
     * @return 结果
     */
    @Override
    public int updateLakkUserassociation(LakkUserassociation lakkUserassociation)
    {
        return lakkUserassociationMapper.updateLakkUserassociation(lakkUserassociation);
    }

    /**
     * 批量删除lakk用户关联
     * 
     * @param ids 需要删除的lakk用户关联主键
     * @return 结果
     */
    @Override
    public int deleteLakkUserassociationByIds(Long[] ids)
    {
        return lakkUserassociationMapper.deleteLakkUserassociationByIds(ids);
    }

    /**
     * 删除lakk用户关联信息
     * 
     * @param id lakk用户关联主键
     * @return 结果
     */
    @Override
    public int deleteLakkUserassociationById(Long id)
    {
        return lakkUserassociationMapper.deleteLakkUserassociationById(id);
    }
}
